From: Rui Matos Date: Wed, 22 Jun 2016 18:57:17 +0000 (+0200) Subject: StShadowHelper: properly use the actor's box to paint the shadow X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~836 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3e93a1bdd6213e4d0ddf665452a6562c989030ae;p=gnome-shell.git StShadowHelper: properly use the actor's box to paint the shadow We're using an unitialized box resulting in an undefined shadow box size. _st_paint_shadow_with_opacity() already computes the shadow's bounding box from the source actor's box so we just need to pass that along. https://bugzilla.gnome.org/show_bug.cgi?id=767954 --- diff --git a/src/st/st-shadow.c b/src/st/st-shadow.c index 49e411ce5..dbd3f8e3a 100644 --- a/src/st/st-shadow.c +++ b/src/st/st-shadow.c @@ -287,13 +287,8 @@ st_shadow_helper_paint (StShadowHelper *helper, ClutterActorBox *actor_box, guint8 paint_opacity) { - ClutterActorBox allocation; - float width, height; - - clutter_actor_box_get_size (actor_box, &width, &height); - _st_paint_shadow_with_opacity (helper->shadow, helper->pipeline, - &allocation, + actor_box, paint_opacity); }